<?php $this->load->view('_header'); ?>
<?php echo link_tag('/assets/css/frontend/lawyer.css'); ?>

<div id="main-content">
    <div id="left">
        <div id="adviser">
            <div class="title">
                <a class="link" href="/index.php?c=adviser&m=index">顾问单位</a>
                <a class="more" href="/index.php?c=adviser&m=index">more</a></div>
            <div class="content">
                <ul>
                    <?php foreach ($advisers as $adviser): ?>
                        <li>
                            <a href="/index.php?c=adviser&m=show&id=<?php echo $adviser->id; ?>">
                                <?php echo $adviser->name; ?>
                            </a>
                        </li>
                    <?php endforeach; ?>
                    </ul>
                </div>
            </div>
            <div id="contact">
                <div class="title">
                    <a class="link" href="/index.php?c=home&m=contact">联系我们</a>
                    <a class="more" href="/index.php?c=home&m=contact">more</a>
                </div>
                <div class="content">
                    <div class="img"><img src="/assets/images/contact.gif" alt="contact"/></div>
                    <ul>
                        <?php if($contact != false): ?>
                        <li>联系电话：<?php echo $contact->telephone; ?></li>
                        <li>电子邮箱：<?php echo $contact->email; ?></li>
                        <li>详细地址：<?php echo $contact->address; ?></li>
                        <?php else: ?>
                        <li>联系电话：0371—86101071</li>
                        <li>电子邮箱：hn90law@163.com</li>
                        <li>详细地址：河南省郑州市金水区曼哈顿广场6幢1单元6层东户</li>
                        <?php endif; ?>
                    </ul>
                    <div class="img"><img src="/assets/images/map.gif" alt="map"/></div>
                </div>
            </div>
        </div>

        <div id="right">
            <h5 class="main-nav-links">
                    <a href="http://www.90law.com/">首页</a>
                    >>
                    <a href="http://www.90law.com/index.php?c=home&m=lawyer">律师团队</a>
                    >>
                    <?php echo $lawyer->name; ?>
            </h5>
            <div class="lawyer">
                <div style="text-align: center;margin: 20px auto;">
                        <?php echo ($photo = $this->photo->find($lawyer->photo_id)) ? img('/assets/images/uploads/' . $photo->file_name) : ''; ?>
                        <h5><?php echo $lawyer->name; ?></h5>
                </div>
                        <p><?php echo $lawyer->content; ?></p>      
             </div>
                </div>
                <div class="clear"></div>
            </div>


<?php $this->load->view('_footer'); ?>